package test;

import com.spring.core.annotation.Autowired;
import com.spring.core.annotation.Component;

@Component
public class ComponentA {
    @Autowired
    private ComponentB componentB;

    public ComponentA() {
        System.out.println("ComponentA执行构造方法");
    }

    public void doSomething() {
        System.out.println("A的方法");
    }
}
